package com.example.firstjavamqtt.model.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BaseLog implements Serializable {

    private static final long serialVersionUID = 1L;
    //数据库id
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("device_id")
    private String deviceId;
    @TableField("operation_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operationDate;
    @TableField("method")
    private String method;
    @TableField("remote_host")
    private String remoteHost;
    @TableField("uri")
    private String uri;
}
